package com.cdyx.outsideprescription.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdyx.outsideprescription.BO.EpcInfoBo;
import com.cdyx.outsideprescription.dto.EpcInfoDto;
import com.cdyx.outsideprescription.dto.queryEpcDto;
import com.cdyx.outsideprescription.entity.TbEpcinfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiang dongqiong
 * @since 2021-12-27
 */
public interface TbEpcinfoMapper extends BaseMapper<TbEpcinfo> {

    int insertEpcInfo(@Param("data") Map<String, Object> data,@Param("mothYear") List<Map<String, String>> mothYear);

    EpcInfoDto selectEpcInfo(@Param("epcInfo") Map<String, Object> epcInfo,@Param("mothYear") List<Map<String, String>> mothYear);

    EpcInfoBo getMessage();

    void updateInfo(@Param("psn_no") String psn_no, @Param("epc_id") String epc_id,
                    @Param("expContent") String expContent, @Param("id") long id);

    Long selectEpcInfoId(String visitNo);

    int updateInfobyReturn(@Param("epcinfo") Map<String, Object> epcinfo, @Param("epc_id") String epc_id);

    int updateStatus(Map<String, Object> data);

    List<queryEpcDto> selectEpc(Map<String,Object> data);

    int insertEpcInfozy(@Param("data") Map<String, Object> data);

    EpcInfoDto selectEpcInfozy(Map<String, Object> epcInfo);

    EpcInfoDto selectEpcInfo2(@Param("epcInfo") Map<String, Object> epcInfo,@Param("mothYear") List<Map<String, String>> mothYear,@Param("epcList") List<Map<String, Object>> epcList);
}
